<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div,
      p {
        border: solid;
      }
    </style>
  </head>
  <body>
    <ul id="list">
      <li>css</li>
      <li>html</li>
      <li>js</li>
    </ul>
    <script>
      // dom树上的节点
      const list = document.getElementById("list");
      console.log(list.cloneNode());
      console.log(list.cloneNode(true));
    </script>
  </body>
</html>
